package com.yxinsur.imc.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/**
 * 保单险种详情对象 imc_order_risk
 *
 * @author imc
 * @date 2021-05-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ImcRecnDetailsVO extends BaseImcEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 保单表外键
     */
    @Excel(name = "保单表外键")
    private Long orderId;

    /**
     * 产品库表的外键（非我的产品表）
     */
    @Excel(name = "产品库表的外键", readConverterExp = "非=我的产品表")
    private Long repoInsId;

    /**
     * 险种代码
     */
    @Excel(name = "险种代码")
    private String insCode;

    /**
     * 险种名称
     */
    @Excel(name = "险种名称")
    private String riskName;


    /**
     * 险种保费-首年/首次
     */
    @Excel(name = "险种保费-首年/首次")
    private BigDecimal prem;

    /**
     * 险种基本保额
     */
    @Excel(name = "险种基本保额")
    private BigDecimal amount;

    /**
     * 应缴保费
     */
    @Excel(name = "应缴保费")
    private BigDecimal payablePrem;

    /**
     * 保单号，合同号
     */
    @Excel(name = "保单号，合同号")
    private String policyCode;

    /**
     * 折标率
     */
    @Excel(name = "折标率")
    private BigDecimal standRate;

    /**
     * 实缴保费
     */
    @Excel(name = "实缴保费")
    private BigDecimal paymentPrem;

    /**
     * 首年保费对应标保
     */
    @Excel(name = "首年保费对应标保")
    private BigDecimal standPrem;

    /**
     * 代理人佣金率
     */
    @Excel(name = "代理人佣金率")
    private BigDecimal commissionRate;

    /**
     * 佣金
     */
    @Excel(name = "佣金")
    private BigDecimal commission;

    /**
     * 供应商手续费率
     */
    @Excel(name = "供应商手续费率")
    private BigDecimal feeRate;

    /**
     * 总保费
     */
    @Excel(name = "总保费")
    private BigDecimal totalPrem;

    /**
     * 总基础手续费
     */
    @Excel(name = "总基础手续费")
    private BigDecimal totalFee;


    /**
     * 保障期限类型
     */
    @Excel(name = "保障期限类型")
    private String coveragePeriodEnum;

    /**
     * 手续费结算月份
     */
    @Excel(name = "手续费结算月份")
    private String settleMonth;

    /**
     * 保障期限
     */
    @Excel(name = "保障期限")
    private String coveragePeriodValue;

    /**
     * Y结算 N和NULL没结算
     */
    @Excel(name = "Y结算 N和NULL没结算")
    private String isFeeSettled;

    /**
     * 保障期限单位
     */
    @Excel(name = "保障期限单位")
    private String coveragePeriodUnit;

    /**
     * 缴费期限类型
     */
    @Excel(name = "缴费期限类型")
    private String chargePeriodEnum;

    /**
     * 缴费期限
     */
    @Excel(name = "缴费期限")
    private String chargePeriodValue;

    /**
     * 缴费期限单位
     */
    @Excel(name = "缴费期限单位")
    private String chargePeriodUnit;

    /**
     * 险种方案外键
     */
    @Excel(name = "险种方案外键")
    private Long insSchemeId;

    /**
     * 领取年龄
     */
    @Excel(name = "领取年龄")
    private Long pensionAge;

    /**
     * 因子1值
     */
    @Excel(name = "因子1值")
    private String factor1Value;

    /**
     * 缴费频率类型
     */
    @Excel(name = "缴费频率类型")
    private String chargeIntervalEnum;

    /**
     * 因子2值
     */
    @Excel(name = "因子2值")
    private String factor2Value;

    /**
     * 是否自动续保Y N
     */
    @Excel(name = "是否自动续保Y N")
    private String autoRenewalEnum;

    /**
     * 因子3值
     */
    @Excel(name = "因子3值")
    private String factor3Value;

    /**
     * 险种是否已经豁免(险种保费豁免时为1，默认为0)
     */
    @Excel(name = "险种是否已经豁免(险种保费豁免时为1，默认为0)")
    private Long isExempted;

    /**
     * 险种状态
     */
    @Excel(name = "险种状态")
    private String riskStatusCode;

    /**
     * 投保日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投保日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyDate;

    /**
     * 撤单日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "撤单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelDate;

    /**
     * 撤单原因
     */
    @Excel(name = "撤单原因")
    private String cancelCauseNote;

    /**
     * 保单所在年度首年为1
     */
    @Excel(name = "保单所在年度首年为1")
    private Long policyYear;

    /**
     * 承保日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "承保日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insureDate;

    /**
     * 保单生效日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保单生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveDate;

    /**
     * 保单缴费次数，首次为1
     */
    @Excel(name = "保单缴费次数，首次为1")
    private Long payNum;

    /**
     * 应缴日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "应缴日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payableDate;

    /**
     * 保单失效日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保单失效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiredDate;


    /**
     * 应缴月
     */
    @Excel(name = "应缴月")
    private String payableMonth;

    /**
     * 回执录入时间(回执录入系统时间)
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回执录入时间(回执录入系统时间)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ackDate;

    /**
     * 实缴日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实缴日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentDate;

    /**
     * 险种终止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "险种终止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 实缴月
     */
    @Excel(name = "实缴月")
    private String paymentMonth;

    /**
     * 终止原因[A犹豫期退保B退保C理赔终止]
     */
    @Excel(name = "终止原因[A犹豫期退保B退保C理赔终止]")
    private String endCause;

    /**
     * 险种终止备注
     */
    @Excel(name = "险种终止备注")
    private String endCauseNote;

    /**
     * 豁免日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "豁免日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date waiverDate;

    /**
     * 豁免原因
     */
    @Excel(name = "豁免原因")
    private String waiverCause;

    /**
     * $column.columnComment
     */
    @Excel(name = "豁免原因")
    private String createId;

    /**
     * $column.columnComment
     */
    @Excel(name = "豁免原因")
    private String updateId;

    /**
     * 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构）
     */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;

    /**
     * 宽限截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "宽限截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date graceDate;

    /**
     * 费用科目类型
     */
    @Excel(name = "费用科目类型")
    private String expenseCode;

    /**
     * 费用科目费用
     */
    @Excel(name = "费用科目费用")
    private String expenseValue;

    @Excel(name = "处理后的动态列（费用科目类型：费用科目值）")
    private Map<String, Object> dynamicFieldMap;
}
